/* 该方法在流转过程中会自动调用,千万不能删除,否则会出现脚本调用异常 */
function changdangbanfawen_() {
	/* 添加自定义的函数脚本 */
	if (arguments && arguments.length) {
		if (typeof arguments[0] == 'string' && arguments[0] == 'save') {
			window.location.href = context
					+ '/system/flowlist.do?method=mypendinglist';
		} else if (typeof arguments[0] == 'string'
				&& (arguments[0] == 'send' || arguments[0] == 'finish')) {
			window.location.href = context
					+ '/system/flowlist.do?method=mydonelist';
		} else if (typeof arguments[0] == 'string' && arguments[0] == 'back') {
			window.location.href = context
					+ '/system/flowlist.do?method=mypendinglist';
		} else if (typeof arguments[0] == 'string' && arguments[0] == 'finish') {
			window.location.href = context
					+ '/system/flowlist.do?method=mypendinglist';
		} else if (typeof arguments[0] == 'string' && arguments[0] == 'cancel') {
			window.location.href = context
					+ '/system/flowlist.do?method=mypendinglist';
		} else if (typeof arguments[0] == 'string'
				&& (arguments[0] == 'neu' || arguments[0] == 'edit'
						|| arguments[0] == 'view' || arguments[0] == 'lookover')) {
			var frm = getFrameInParent('menuFrm');

			if (arguments[0] == 'neu') {
				/* 发文机关 */
				$('COL_UBKBBAHYQZ_label').innerHTML = groupflumelabel;
				$('COL_UBKBBAHYQZ').value = groupflumelabel;

				/* 拟稿人 */
				$('COL_GEXXHGOBDT_label').innerHTML = username;
				$('COL_GEXXHGOBDT').value = username;

				/* 拟稿时间 */
				$('COL_OWVGHPOQXC_label').innerHTML = tdate;
				$('COL_OWVGHPOQXC').value = tdate1;
			}
		}
	}
	
	/* 调整父窗口frame高度 */
	if (parent.resizeFrame) {
		parent.resizeFrame(document.getElementsByTagName("body")[0].scrollHeight);
	}
}